package com.pureut.storage.mapper;

import com.pureut.storage.domain.order.domain.CustomerManagement;
import com.pureut.storage.domain.order.dto.CustomerManagementDto;
import com.pureut.storage.dto.CustomerManagementMqDto;
import com.sale.common.mybatis.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 客户mapper
 */
@Mapper
public interface CustomerManagementMapper extends BaseMapperPlus<CustomerManagementMapper, CustomerManagement, CustomerManagement> {

    /**
     * 根据客户编码获取数据
     */

    CustomerManagementDto getDataByCode(String customerNum);

    /**
     * 新增
     */
    int insertData(CustomerManagement customerManagement);

    /**
     * 修改类别信息
     */
    int updateData(CustomerManagementMqDto mq);

    /**
     * 删除
     */
    int deleteData(@Param("idList") List<String> idList);
}
